// JavaScript Document
function $$(id){
	return document.getElementById(id);
	}
function pageload(){
	var strName = localStorage.getItem("keyName");
	var strPass = localStorage.getItem("keyPass");
	if(strName){
		$$("txtName").value = strName;
	}
	if(strPass){
		$$("txtPass").value = strPass;
	}
}
function btnLogin_click(){
	var strName = $$("txtName").value
	var strPass = $$("txtPass").value;
	localStorage.setItem("keyName",strName);
	if($$("chkSave").checked){
		localStorage.setItem("keyPass",strPass);
	}else{
		localStorage.removeItem("keyPass");
	}
	$$("spnStatus").className="status";
	$$("spnStatus").innerHTML="登陆成功";
	}	